import React, { Component } from 'react';
import {GlobalContainer, GlobalStyle} from './AppStyle.js';
import {BrowserRouter, Route} from 'react-router-dom';
import Header from "./partial/common/header"
import Detail from "./page/detail"
import Home from "./page/home"
class App extends Component {
    render () {
        return (
            <GlobalContainer>
                <Header></Header>
                <BrowserRouter>
                    <div>
                        <Route path="/" exact component={Home}></Route>
                        <Route path="/detail" exact component={Detail}></Route>
                    </div>
                </BrowserRouter>
                <GlobalStyle />
            </GlobalContainer>
        )
    }
}

export default App;
